package com.jmp.base;

import com.jmp.base.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface CardApi {

    /**
     * 员工列表
     */
    @PostMapping("/card/list")
    ResultModel<CardListVo> list(@RequestBody CardListDto request);

    /**
     * 创建名片
     */
    @PostMapping("/card/save")
    ResultModel save(@RequestBody CardSaveRequest request);

    /**
     * 名片审核-通过
     */
    @PostMapping("/card/apply/agree")
    ResultModel applyAgree(@RequestBody CardApplyAgreeDto request);

    /**
     * 名片审核-拒绝
     */
    @PostMapping("/card/apply/refuse")
    ResultModel applyRefuse(@RequestBody CardApplyRefuseDto request);

    /**
     * 编辑名片
     */
    @PostMapping("/card/edit")
    ResultModel edit(@RequestBody CardEditDto request);

    /**
     * 更新名片-微信二维码
     */
    @PostMapping("/card/wxcode/update")
    ResultModel wxcodeUpdate(@RequestBody CardWxcodeUpdateRequest request);

    /**
     * 验证名片是否过期
     */
    @PostMapping("/card/check")
    ResultModel<CardCheckResponse> check(@RequestBody CardCheckRequest request);
}
